{include 'header.tpl'}
<ol class="breadcrumb">
    <li><a href="/Goods/categoryList">分类列表</a></li>
    <li><a href="/goods/list">商品列表</a></li>
</ol>
<form method="get" action="/adminmall/Goods/categoryList" class="form-inline">
    <table>
        <tr>
            <td>
                <label for="form-w" class="control-label">ID：</label>
                <input class="form-control" id="id" name="id" value="{$smarty.get.id}" placeholder="" size="6"/>
            </td>
            <td>
                <button type="submit" class="btn btn-primary">查找</button>
                <a href="/Goods/categoryModify" class="btn btn-danger">添加分类</a>
            </td>
        </tr>
    </table>
</form>
<div class="clearfix" style="height:30px;"></div>
<table class="table" style="table-layout: fixed;WORD-BREAK: break-all; WORD-WRAP: break-word">
    <tr>
        <td>ID</td>
        <td>系列名称</td>
        <td>图标</td>
        <td>排序值</td>
        <td>操作</td>
    </tr>
    {foreach from=$data item=item}
        <tr>
            <td>{$item.id}</td>
            <td>{$item.name}</td>
            <td>
                {if $item.icon neq ""}
                    <img  src="{$oss_url}{$item.icon}">
                {/if}
            </td>
            <td>{$item.paixu}</td>
            <td>
                <a href="/adminmall/Goods/categoryModify?id={$item.id}" rel="">修改</a>
                <a onclick="return confirm('确定要删除此产品系列吗？');" href="/adminmall/Goods/categoryDel?id={$item.id}"   >删除</a>
            </td>
        </tr>
    {/foreach}
</table>
{include "pager.tpl"}
<script type="text/javascript">
    $(function () {
        create_date_picker();
    });

    function dao(){
        var nickname = $('#nickname').val();
        var mobile = $('#mobile').val();
        var begin_date = $('#begin_date').val();
        var end_date = $('#end_date').val();
        var intentionE1=$("#intention option:selected");
        var intention = intentionE1.val();
//        alert(intention);
//        alert(nickname);
//        alert(mobile);
//        alert(end_date);

        location.href = "/admin/Order/excelDao?begin_date=" + begin_date + "&end_date=" + end_date+ "&nickname=" + nickname+ "&mobile=" + mobile + "&intention=" + intention;

    }
</script>
{include 'footer.tpl'}